/* =========================================================
   トップページ
   Figma（幅1280）の座標を --u（1280基準の1px）で再現する。
   ========================================================= */
.gh-front-main {
  --u: calc(min(100vw, 1280px) / 1280);
  --gh-front-w: min(100% - var(--gh-gutter) * 2, 1166px);
  overflow-x: clip;
}

/* ---------------------------------------------------------
   ファーストビュー
   --------------------------------------------------------- */
.gh-fv__stage {
  position: relative;
  width: min(100%, 1280px);
  height: calc(648 * var(--u));
  margin: 0 auto;
  color: var(--gh-white);
}

.gh-fv__deco > * {
  position: absolute;
  border-radius: 50%;
}

.gh-fv__ring {
  border: 1px solid rgba(255, 255, 255, 0.85);
  will-change: transform;
}

/* 白い円：ゆっくり漂うように動かす（周期を変えて重なり方が毎回変わるようにする） */
.gh-fv__ring--1 {
  animation: gh-ring-a 22s ease-in-out infinite alternate;
}

.gh-fv__ring--2 {
  animation: gh-ring-b 28s ease-in-out infinite alternate;
}

@keyframes gh-ring-a {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(calc(40 * var(--u)), calc(24 * var(--u))) scale(1.05); }
  100% { transform: translate(calc(-16 * var(--u)), calc(40 * var(--u))) scale(0.97); }
}

@keyframes gh-ring-b {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(calc(-36 * var(--u)), calc(-28 * var(--u))) scale(0.96); }
  100% { transform: translate(calc(24 * var(--u)), calc(-12 * var(--u))) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .gh-fv__ring {
    animation: none;
  }
}

.gh-fv__ring--1 {
  top: calc(-157 * var(--u));
  left: calc(-218 * var(--u));
  width: calc(610 * var(--u));
  height: calc(610 * var(--u));
}

.gh-fv__ring--2 {
  top: calc(68 * var(--u));
  left: calc(640 * var(--u));
  width: calc(833 * var(--u));
  height: calc(833 * var(--u));
}

.gh-fv__photo {
  overflow: hidden;
  border: 4px solid var(--gh-white);
}

.gh-fv__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-fv__photo--cow {
  top: calc(-39 * var(--u));
  left: calc(699 * var(--u));
  width: calc(607 * var(--u));
  height: calc(607 * var(--u));
}

.gh-fv__photo--barn {
  top: calc(-96 * var(--u));
  left: calc(252 * var(--u));
  width: calc(376 * var(--u));
  height: calc(376 * var(--u));
}

.gh-fv__photo--tablet {
  top: calc(373 * var(--u));
  left: calc(678 * var(--u));
  width: calc(276 * var(--u));
  height: calc(276 * var(--u));
}

.gh-fv__copy {
  position: absolute;
  top: calc(240 * var(--u));
  left: calc(55 * var(--u));
  z-index: 1;
}

.gh-fv__en {
  margin: 0;
  font-size: calc(70 * var(--u));
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.gh-fv__ja {
  margin: calc(12 * var(--u)) 0 0;
  font-size: calc(32 * var(--u));
  font-weight: 700;
  line-height: 1.5;
}

.gh-fv__sub {
  margin: calc(-2 * var(--u)) 0 0;
  font-size: max(10px, calc(12 * var(--u)));
  font-weight: 700;
}

.gh-fv__notice {
  position: absolute;
  top: calc(513 * var(--u));
  left: calc(56 * var(--u));
  z-index: 1;
  width: calc(641 * var(--u));
  min-height: calc(102 * var(--u));
  padding: calc(16 * var(--u)) calc(25 * var(--u));
  color: #3f3f3f;
  background: var(--gh-white);
  border-radius: 11px;
}

.gh-fv__notice-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.gh-fv__notice-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 20px;
}

.gh-fv__notice-body p {
  margin: 0;
}

.gh-fv__notice-body a {
  text-decoration: underline;
}

/* お見舞い文がないとき：コピーを少し下げて、FVの中央寄りに置く */
.gh-fv--no-notice .gh-fv__copy {
  top: calc(300 * var(--u));
}

.gh-fv__scroll {
  position: absolute;
  top: calc(546 * var(--u));
  left: calc(1155 * var(--u));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 87px;
  height: 87px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--gh-white);
  border: 1px solid var(--gh-white);
  border-radius: 50%;
}

.gh-fv__scroll svg {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  animation: gh-scroll 1.8s ease-in-out infinite;
}

@keyframes gh-scroll {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .gh-fv__scroll svg {
    animation: none;
  }
}

/* ---------------------------------------------------------
   新着情報
   --------------------------------------------------------- */
.gh-news {
  position: relative;
  z-index: 1;
  width: var(--gh-front-w);
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.gh-news__more {
  margin-top: 23px;
  text-align: right;
}

/* ---------------------------------------------------------
   乳用種／黒毛和種
   --------------------------------------------------------- */
.gh-breeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 27px;
  width: var(--gh-front-w);
  margin: 31px auto 0;
}

.gh-breed {
  display: flex;
  min-height: 275px;
  overflow: hidden;
  color: #3f3f3f;
  background: var(--gh-white);
  border-radius: 40px 10px 40px 10px;
}

.gh-breed--black {
  color: var(--gh-white);
  background: var(--gh-ink);
}

.gh-breed__body {
  flex: 1;
  padding: 27px 20px 16px 32px;
}

.gh-breed__en {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.gh-breed__ja {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.gh-breed__text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 19px;
}

.gh-breed .gh-btn {
  margin-top: 14px;
  margin-left: -7px;
}

.gh-breed__photo {
  flex: 0 0 218px;
}

.gh-breed__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   SIRE
   --------------------------------------------------------- */
.gh-sire {
  margin-top: 47px;
  padding: 37px 0 82px;
  background: var(--gh-white);
}

.gh-sire__inner {
  width: min(100% - var(--gh-gutter) * 2, 1152px);
  margin: 0 auto;
}

.gh-sire__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.gh-sire__title {
  margin: 0;
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.07em;
  color: var(--gh-blue);
}

.gh-sire__lead {
  margin: 0;
  font-size: 14px;
  color: var(--gh-sub);
}

.gh-sire__btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gh-sire__btn {
  display: grid;
  place-items: center;
  min-width: 158px;
  height: 36px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--gh-blue);
  border: 1px solid var(--gh-blue);
  border-radius: 52px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-sire__btn:hover,
.gh-sire__btn--fill {
  color: var(--gh-white);
  background: var(--gh-blue);
}

.gh-sire__btn--fill {
  height: 40px;
}

.gh-sire__slider {
  margin-top: 17px;
}

.gh-sire__covers {
  display: flex;
  gap: 27px;
  /* 右側は画面端まで流す */
  margin-right: calc((100vw - 100%) / -2);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* 横スクロール要素は上下もはみ出しを切るので、持ち上げ・影の分だけ余白を取り、
     同じ分のマイナスマージンで見た目の位置は変えない */
  margin-top: -12px;
  margin-bottom: -20px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.gh-sire__covers::-webkit-scrollbar {
  display: none;
}

.gh-sire__covers li {
  flex: 0 0 200px;
}

.gh-sire__covers li:last-child {
  margin-right: var(--gh-gutter);
}

.gh-sire__covers a {
  position: relative;
  display: block;
  border: 1px solid var(--gh-line);
}

.gh-sire__covers img {
  display: block;
  width: 100%;
}

.gh-sire__bar {
  position: relative;
  height: 10px;
  margin-top: 18px;
  background: #a7a7a7;
  border-radius: 10px;
}

.gh-sire__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 6px;
  min-width: 40px;
  background: var(--gh-white);
  border-radius: 6px;
  cursor: grab;
  touch-action: none;
}

/* ---------------------------------------------------------
   SNS・バナー
   --------------------------------------------------------- */
.gh-links {
  width: min(100% - var(--gh-gutter) * 2, 1148px);
  margin: 39px auto 0;
}

.gh-sns {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.gh-sns__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 74px;
  padding: 0 30px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: var(--gh-white);
  border: 1px solid var(--gh-white);
  border-radius: 60px;
  transition: background-color 0.2s ease;
}

.gh-sns__btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.gh-sns__btn svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.gh-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 41px;
  margin-top: 47px;
}

.gh-banners a {
  position: relative;
  display: block;
  overflow: hidden;
}

.gh-banners img {
  display: block;
  width: 100%;
  aspect-ratio: 554 / 184;
  object-fit: cover;
}

.gh-banners__nolink {
  display: block;
}

/* 枚数でレイアウトを変える */
.gh-banners--1 {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.gh-banners--3,
.gh-banners--6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gh-banners--5 {
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.gh-banners--5 > li {
  grid-column: span 2;
}

.gh-banners--5 > li:nth-child(n + 4) {
  grid-column: span 3;
}

/* ---------------------------------------------------------
   RECRUIT
   --------------------------------------------------------- */
.gh-front-recruit {
  width: min(100% - var(--gh-gutter) * 2, 1152px);
  margin: 37px auto 0;
  padding-bottom: 82px;
}

.gh-front-recruit__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 154px;
  padding: 20px 60px 20px 64px;
  color: var(--gh-white);
  background: var(--gh-ink);
  border-radius: 40px 20px 40px 20px;
}

.gh-front-recruit__title {
  flex-shrink: 0;
  margin: 0;
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.gh-front-recruit__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
}

/* ---------------------------------------------------------
   タブレット
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  

  .gh-breed__en {
    font-size: 32px;
  }

  .gh-breed__photo {
    flex-basis: 34%;
  }

  .gh-sns {
    flex-wrap: wrap;
  }

  .gh-sns__btn {
    height: 60px;
    padding: 0 32px;
    font-size: 24px;
  }

  .gh-front-recruit__box {
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 32px 40px;
  }
}

@media (max-width: 960px) {
  .gh-breeds {
    grid-template-columns: 1fr;
  }

  .gh-sire__head {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------
   スマホ
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .gh-front-main {
    --gh-front-w: calc(100% - var(--gh-gutter) * 2);
  }

  /* FV：写真をまとめて上、コピーとお知らせを下に積む */
  .gh-fv__stage {
    height: auto;
    padding: 330px var(--gh-gutter) 32px;
  }

  .gh-fv__ring--1 {
    top: -90px;
    left: -150px;
    width: 340px;
    height: 340px;
  }

  .gh-fv__ring--2 {
    top: 120px;
    left: 150px;
    width: 420px;
    height: 420px;
  }

  .gh-fv__photo {
    border-width: 3px;
  }

  .gh-fv__photo--cow {
    top: 70px;
    left: auto;
    right: -40px;
    width: 250px;
    height: 250px;
  }

  .gh-fv__photo--barn {
    top: 80px;
    left: -36px;
    width: 160px;
    height: 160px;
  }

  .gh-fv__photo--tablet {
    top: 210px;
    left: 70px;
    width: 120px;
    height: 120px;
  }

  .gh-fv__copy,
  .gh-fv__notice,
  .gh-fv--no-notice .gh-fv__copy {
    position: relative;
    top: auto;
    left: auto;
  }

  .gh-fv--no-notice .gh-fv__stage {
    padding-top: 370px;
    padding-bottom: 48px;
  }

  .gh-fv__en {
    font-size: min(36px, 9.4vw);
    line-height: 1.05;
    letter-spacing: 0.04em;
  }

  .gh-fv__ja {
    margin-top: 10px;
    font-size: 20px;
  }

  .gh-fv__sub {
    font-size: 12px;
  }

  .gh-fv__notice {
    width: auto;
    min-height: 0;
    margin-top: 24px;
    padding: 16px 18px;
  }

  .gh-fv__notice-title {
    font-size: 14px;
  }

  .gh-fv__scroll {
    display: none;
  }

  /* 新着：タブは横スクロール */
  .gh-news {
    width: 100%;
    padding: 0 var(--gh-gutter);
  }

  

  

  

  

  

  

  

  

  

  

  .gh-news__more {
    text-align: center;
  }

  /* 乳用種／黒毛和種 */
  .gh-breeds {
    gap: 16px;
    margin-top: 24px;
  }

  .gh-breed {
    min-height: 0;
    border-radius: 28px 8px 28px 8px;
  }

  .gh-breed__body {
    padding: 22px 12px 20px 20px;
  }

  .gh-breed__en {
    font-size: 26px;
  }

  .gh-breed__ja {
    margin-top: 12px;
    font-size: 17px;
  }

  .gh-breed__text {
    font-size: 11px;
    line-height: 17px;
  }

  .gh-breed .gh-btn {
    min-width: 0;
    margin-left: 0;
    font-size: 13px;
  }

  .gh-breed__photo {
    flex-basis: 34%;
  }

  /* SIRE */
  .gh-sire {
    margin-top: 40px;
    padding: 32px 0 48px;
  }

  .gh-sire__title {
    font-size: 56px;
  }

  .gh-sire__lead {
    font-size: 13px;
  }

  .gh-sire__btns {
    flex-wrap: wrap;
    gap: 8px;
  }

  .gh-sire__btns li:first-child {
    flex-basis: 100%;
  }

  .gh-sire__btns li {
    flex: 1;
  }

  .gh-sire__btn {
    min-width: 0;
    padding: 0 12px;
  }

  .gh-sire__covers {
    gap: 14px;
  }

  .gh-sire__covers li {
    flex-basis: 140px;
  }

  /* SNS・バナー */
  .gh-links {
    margin-top: 32px;
  }

  .gh-sns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gh-sns__btn {
    gap: 10px;
    height: 52px;
    padding: 0 12px;
    font-size: 17px;
  }

  .gh-sns__btn svg {
    width: 22px;
    height: 22px;
  }

  .gh-banners,
  .gh-banners--1,
  .gh-banners--3,
  .gh-banners--5,
  .gh-banners--6 {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .gh-banners--5 > li,
  .gh-banners--5 > li:nth-child(n + 4) {
    grid-column: auto;
  }

  /* RECRUIT */
  .gh-front-recruit {
    margin-top: 24px;
    padding-bottom: 56px;
  }

  .gh-front-recruit__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 24px;
    border-radius: 28px 12px 28px 12px;
  }

  .gh-front-recruit__title {
    font-size: 44px;
  }

  .gh-front-recruit__text {
    font-size: 13px;
  }
}

/* =========================================================
   ホバーエフェクト
   ========================================================= */
@media (hover: hover) {
  /* スクロールボタン：白く塗りつぶし */
  .gh-fv__scroll {
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .gh-fv__scroll:hover {
    color: var(--gh-blue);
    background: var(--gh-white);
  }

  /* 新着タブ：少し持ち上がる */
  

  

  /* 新着の行：背景が淡く色づき、矢印が右へ */
  

  

  

  

  

  /* 乳用種／黒毛和種：写真がゆっくりズーム */
  .gh-breed__photo {
    overflow: hidden;
  }

  .gh-breed__photo img {
    transition: transform 0.6s ease;
  }

  .gh-breed:hover .gh-breed__photo img {
    transform: scale(1.06);
  }

  /* SIRE ボタン */
  .gh-sire__btn--fill:hover {
    background: var(--gh-navy);
    border-color: var(--gh-navy);
  }

  /* SIRE 表紙：持ち上がって影 */
  /* SIRE 表紙：持ち上がって影 */
  .gh-sire__covers a {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .gh-sire__covers a:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.16);
  }

  .gh-banners a::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 var(--gh-blue);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
  }

  /* SNS：白く塗りつぶし、文字は青 */
  .gh-sns__btn {
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .gh-sns__btn:hover {
    color: var(--gh-blue);
    background: var(--gh-white);
  }

  /* バナー：持ち上がって影 */
  .gh-banners img {
    transition: transform 0.5s ease;
  }

  .gh-banners a:hover img {
    transform: scale(1.04);
  }

  .gh-banners a:hover::after {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 4px var(--gh-white);
  }

  /* RECRUIT：黒い枠のどこに乗せても白黒反転 */
  .gh-front-recruit__box {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .gh-front-recruit__box:hover,
  .gh-front-recruit__box:has(.gh-btn:focus-visible) {
    color: var(--gh-ink);
    background: var(--gh-white);
  }

  .gh-front-recruit__box:hover .gh-btn,
  .gh-front-recruit__box:has(.gh-btn:focus-visible) .gh-btn {
    color: var(--gh-white);
    background: var(--gh-ink);
    box-shadow: inset 0 0 0 1.5px var(--gh-ink);
  }

  .gh-front-recruit__box:hover .gh-btn::after,
  .gh-front-recruit__box:has(.gh-btn:focus-visible) .gh-btn::after {
    background-color: var(--gh-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
    transform: translateX(4px);
  }
}

/* RECRUIT：枠全体をリンクにする（もっとみるのリンクを枠いっぱいに広げる） */
.gh-front-recruit__box .gh-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.gh-front-recruit__box {
  cursor: pointer;
}

/* リンクのないバナーは、押せるように見せない */
.gh-banners__nolink img {
  transform: none !important;
}
