@charset "UTF-8";
/*
Theme Name: kitaichi-info
Version: 1.1
Theme URI:
Author: Owndmedia
*/

/* ************************************************************************************************
  common / 共通
************************************************************************************************ */
:root {
  /* カラー */
  --color-main: #004EAE;
  --color-sub: #49A078;
  --color-red: #ff0000;
  --color-text: #222222;
  --color-bg: #FFFFFF;
  --color-gray: #E6E6E6;
  --color-light-gray: #f1efef;

  --color-main-rgb: 0, 78, 174;
  --color-sub-rgb: 73, 160, 120;
  --color-text-rgb: 34, 34, 34;
  --color-bg-rgb: 255, 255, 255;
  --color-gray-rgb: 230, 230, 230;

  --font-size-14: clamp(0.8125rem, 0.7905rem + 0.0939vw, 0.8750rem); /* 13px→14px */
  --font-size-16: clamp(0.8750rem, 0.8310rem + 0.1878vw, 1.0000rem); /* 14px→16px */
  --font-size-18: clamp(0.9375rem, 0.8715rem + 0.2817vw, 1.1250rem); /* 15px→18px */
  --font-size-20: clamp(1.0625rem, 0.9965rem + 0.2817vw, 1.2500rem); /* 17px→20px */
  --font-size-24: clamp(1.1875rem, 1.0775rem + 0.4695vw, 1.5000rem); /* 19px→24px */
  --font-size-28: clamp(1.3125rem, 1.1585rem + 0.6573vw, 1.7500rem); /* 21px→28px */
  --font-size-32: clamp(1.5000rem, 1.3239rem + 0.7512vw, 2.0000rem); /* 24px→32px */
  --font-size-36: clamp(1.6875rem, 1.4894rem + 0.8451vw, 2.2500rem); /* 27px→36px */
  --font-size-40: clamp(1.8750rem, 1.6549rem + 0.9390vw, 2.5000rem); /* 30px→40px */
  --font-size-44: clamp(2.1250rem, 1.9049rem + 0.9390vw, 2.7500rem); /* 34px→44px */
  --font-size-48: clamp(2.3750rem, 2.1549rem + 0.9390vw, 3.0000rem); /* 38px→48px */

  --mb-50:  3.125rem;  /* 50px */
  --mb-100: 6.25rem;   /* 100px */
  --mb-150: 9.375rem;  /* 150px */
  --mb-200: 12.5rem;   /* 200px */

  --screen-sm: 375px;   /* スマホ */
  --screen-md: 768px;   /* タブレット */
  --screen-lg: 1024px;  /* PC（小） */
  --screen-xl: 1440px;  /* PC（大） */

  --container-width: 1200px; /* コンテンツ最大幅 */
  --container-padding: 5vw;  /* 左右の余白（可変） */
}


/* ************************************************************************************************
  front-page.php / トップページ
************************************************************************************************ */
/***** 背景に流れている動画 ******/
#bg-movie {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  top: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  z-index: -100;
  -webkit-filter: brightness(0.7);
  -moz-filter: brightness(0.7);
  filter: brightness(0.7);
  background-size: cover;
  -o-object-fit: cover;
    object-fit: cover;
    font-family: 'object-fit: cover;';
}
@supports (-ms-ime-align: auto) {
  #bg-movie {
    height: auto;
  }
}
#index__wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: ease-in-out .4s;
}
#index__wrap h2,
#index__wrap p,
#index__wrap a,
#index__wrap li,
#index__wrap td {
  color: var(--color-bg);
}
.bg-active {
  background: rgba(0,0,0, .8);
  transition: ease-in-out .4s;
}

/***** メインビジュアル ******/
#hero {
  width: 100%;
  height: 100dvh;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  align-items: flex-end;
}
.hero__box {
  align-items: center;
}
.hero__box img {
  margin-right: 5rem;
  width: 150px;
}
.hero__ttl {
  margin-bottom: 20%;
  margin-left: 20%;
}
.hero__ttl .en {
  font-family: "Marcellus", serif;
  font-size: 10rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 1;
}
.hero__ttl .jp,
.hero__ttl .txt {
  color: rgba(var(--color-bg-rgb), .8) !important;
  font-size: 2.2rem;
}

/***** コンセプト ******/
#index-about {
  padding: 25rem 0 15rem;
}
.index-about__txt {
  font-size: 1.8rem;
  margin-top: 10rem;
}

/***** 育成馬&レース実績&売り馬情報 ******/
#index-menu {
  margin-bottom: 20rem;
}
#index-menu .menu-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) minmax(0, .9fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 30px;
  border-top: 1px solid rgba(var(--color-bg-rgb), .25);
  color: var(--color-bg);
  text-decoration: none;
  isolation: isolate;
}
#index-menu .menu-row:last-child {
  border-bottom: 1px solid rgba(var(--color-bg-rgb), .25);
}
#index-menu .menu-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(var(--color-sub-rgb), .28), rgba(var(--color-main-rgb), .1));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.77, 0, .18, 1);
}
#index-menu .menu-row:hover::before,
#index-menu .menu-row:focus-visible::before { transform: scaleX(1); }
#index-menu .menu-row:focus-visible { outline: 2px solid var(--color-sub); outline-offset: -2px; }
#index-menu .menu-row .index__ttl { margin: 0; }
#index-menu .menu-row .index__ttl .en {
  font-size: clamp(2.75rem, 1.95rem + 3.4vw, 4.5rem);
  font-weight: 200;
  line-height: 1.05;
  margin-bottom: 14px;
  text-transform: capitalize;
  transition: color .5s, transform .5s;
}
#index-menu .menu-row:hover .index__ttl .en,
#index-menu .menu-row:focus-visible .index__ttl .en {
  color: var(--color-bg);
  transform: translateX(12px);
}
#index-menu .menu-row .index__ttl p {
  font-size: clamp(1.4rem, 1.22rem + 0.78vw, 1.8rem);
  font-weight: 500;
  letter-spacing: .3em;
}
#index-menu .menu-row .index-menu__txt {
  margin: 0 0 24px;
  font-size: 1.6rem;
  line-height: 1.9;
  color: rgba(var(--color-bg-rgb), .85);
}
#index-menu .menu-row__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
#index-menu .menu-row__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center);
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1),
              filter .7s ease;
  will-change: transform;
}
#index-menu .menu-row:hover .menu-row__img img,
#index-menu .menu-row:focus-visible .menu-row__img img {
  filter: none;
  transform: scale(1.06);
}
#index-menu .menu-row__img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-sub);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.77, 0, .18, 1) .1s;
}
#index-menu .menu-row:hover .menu-row__img::after,
#index-menu .menu-row:focus-visible .menu-row__img::after { transform: scaleX(1); }

/***** 売り馬情報 ******/
#index-article {
  margin-bottom: 20rem;
}
.menu-selling .index__ttl {
  margin-bottom: 5rem;
  text-align: center;
}
#index-article .menu-selling .index__ttl .en {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.05;
  margin-bottom: 14px;
  text-transform: capitalize;
}
#index-article .index-menu__txt {
  margin-bottom: 5rem;
  text-align: center;
}
#index-article .archive__details--table td,
#index-article .archive__details--table td a {
  color: var(--color-text) !important;
}
.menu-selling__btn {
  text-align: center;
  margin-bottom: 5rem;
}

/***** 馬主について ******/
#index-owner {
  margin-bottom: 20rem;
}
.index-owner__txt {
  width: 100%;
  height: auto;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 100%),
    url(img/index/index_owner.jpg) no-repeat 50% 25% / cover;
  padding: 6rem;
  border: 10px solid var(--color-sub);
  box-sizing: border-box;
}
.index-owner__txt h2 {
  font-size: 2.2rem;
}
.index-owner__txt h2 span {
  font-size: clamp(2.75rem, 1.95rem + 3.4vw, 4.5rem);
  font-weight: 200;
  display: block;
  line-height: 1.05;
  text-transform: capitalize;
  transition: color .5s, transform .5s;
}
.index-owner__txt p {
  font-size: clamp(1.4rem, 1.22rem + 0.78vw, 1.8rem);
  margin: 2.5rem 0 5rem;
}

/***** 新着情報 ******/
#index-update {
  padding-bottom: 20rem;
}
#index-update .wrap {
  justify-content: space-between;
  gap: 5rem;
}
.index-update {
  width: 50%;
}
.index-update__tbl {
  margin: 7rem 0 5rem;
  width: 100%;
}
.index-update__tbl th,
.index-update__tbl td {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(var(--color-bg-rgb), .25);
}
.index-update__tbl th {
  color: #a9a8a8;
  font-weight: normal;
  padding-right: 3rem;
}
#index__wrap .index-update__tbl td a {
  transition: all .3s;
}
#index__wrap .index-update__tbl td a:hover {
  transition: all .3s;
  opacity: .6;
}
.index-img img {
  width: 100%;
  max-height: 525px;
  height: 100%;
  object-fit: cover;
  margin-top: 20%;
}

/***** 施設紹介 / 会社案内 ******/
#index-company {
  margin-bottom: 25rem;
}
.index-company__box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}
.index-company__item {
  border: 10px solid rgba(var(--color-main-rgb), 1);
  background: rgba(var(--color-bg-rgb), .25);
  backdrop-filter: blur(20px);
  padding: 5rem;
  height: auto;
}
.index-company__item h2 {
  font-size: 2.2rem;
}
.index-company__item h2 span {
  font-size: clamp(2.75rem, 1.95rem + 3.4vw, 4.5rem);
  font-weight: 200;
  display: block;
  line-height: 1.05;
  text-transform: capitalize;
  transition: color .5s, transform .5s;
}
.index-company__item p {
  font-size: clamp(1.4rem, 1.22rem + 0.78vw, 1.8rem);
  margin: 2.5rem 0 5rem;
}
.index-company__btn {
  margin-bottom: 5rem;
}

/***** 採用情報 ******/
#index-recruit {
  position: relative;
  padding: 20rem 3rem;
  overflow: hidden;
}
#index-recruit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%),
    url(img/index/index_recruit.jpg) no-repeat 50% 25% / cover;
  z-index: 0;
}
#index-recruit .wrap {
  position: relative;
  z-index: 1;
}
.index-recruit__txt {
  margin: 7rem 0 5rem;
}


/* ************************************************************************************************
  archive.php / 育成馬情報 一覧・売り馬情報 一覧
************************************************************************************************ */
.header-sub__breeding {
  background: url(img/page/header_breeding-img.jpg) no-repeat 50% 50% / cover;
}
.header-sub__selling {
  background: url(img/page/header_selling-img.jpg) no-repeat 50% 60% / cover;
}

.archive__content {
  margin: 15rem 0;
}
.archive__taxonomy--list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem 1.2rem;
  margin: 0 0 5rem;
  padding: 0;
  list-style: none;
}
.archive__taxonomy--list li a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  padding: 1rem 1.8rem;
  border-bottom: 1px solid rgba(var(--color-text-rgb), .25);
  background: transparent;
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s cubic-bezier(.22, 1, .36, 1),
              border-color .5s ease;
}
.archive__taxonomy--list li a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.archive__taxonomy--list li a span {
  font-size: 1.1rem;
  letter-spacing: .04em;
  opacity: .55;
  transition: opacity .4s ease;
}
.archive__taxonomy--list li a:hover,
.archive__taxonomy--list li a:focus-visible {
  border-color: var(--color-main);
  color: var(--color-bg);
}
.archive__taxonomy--list li a:hover::before,
.archive__taxonomy--list li a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}
.archive__taxonomy--list li a:hover span,
.archive__taxonomy--list li a:focus-visible span {
  opacity: .8;
}
.archive__taxonomy--list li a:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}
.archive__taxonomy--list li.current-cat a {
  border-color: var(--color-main);
  background: var(--color-main);
  color: var(--color-bg);
}
.archive__taxonomy--list li.current-cat a span {
  opacity: .8;
}
.archive__details {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 1px solid #f7f8fa;
}
.archive__details--table {
  width: 100%;
  min-width: 1280px;
  background-color: var(--color-bg);
  border-collapse: collapse;
  font-size: 1.4rem;
  color: #2b2a26;
}
.archive__details--table tr:first-child th {
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}
.archive__details--table tr:not(:first-child) {
  transition: background-color 0.15s ease;
}
.archive__details--table tr:not(:first-child):nth-of-type(even) {
  background: var(--color-gray);
}
.archive__details--table th {
  text-align: center;
}
.archive__details--table td {
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(var(--color-text-rgb), .3);
  line-height: 1.5;
  white-space: nowrap;
}
.archive__details--table td:nth-child(2) {
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}
.archive__details--table td:nth-child(2) a {
  color: var(--color-main);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 0 1px;
  transition: background-size .4s cubic-bezier(.22, 1, .36, 1),
              color .4s ease;
}
.archive__details--table td:nth-child(2) a:hover,
.archive__details--table td:nth-child(2) a:focus-visible {
  color: var(--color-text);
  background-position: left bottom;
  background-size: 100% 1px;
}
.archive__details--table td:nth-last-child(1),
.archive__details--table td:nth-last-child(2)  {
  text-align: center;
}
.archive__details--table td:first-child {
  padding: 8px;
  width: 70px;
}
.archive__details--table .td__img-link--archive {
  display: block;
  line-height: 0;
  width: 70px;
}
.archive__details--table .td__img-link--archive img {
  display: block;
  width: 70px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dcd6c4;
  box-shadow: 0 1px 3px rgba(31, 59, 47, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.archive__details--table .td__img-link--archive:hover img {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(31, 59, 47, 0.25);
}
.archive__details--table td a.archive__btn,
.archive__details--table td:nth-last-child(2) a,
.archive__details--table td:last-child a {
  position: relative;
  display: block;
  padding: 6px 14px;
  border: 1px solid var(--color-main);
  background: transparent;
  color: var(--color-main);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s cubic-bezier(.22, 1, .36, 1),
              border-color .5s ease;
}
.archive__details--table td a.archive__btn::before,
.archive__details--table td:nth-last-child(2) a::before,
.archive__details--table td:last-child a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.archive__details--table td a.archive__btn:hover,
.archive__details--table td a.archive__btn:focus-visible,
.archive__details--table td:nth-last-child(2) a:hover,
.archive__details--table td:nth-last-child(2) a:focus-visible,
.archive__details--table td:last-child a:hover,
.archive__details--table td:last-child a:focus-visible {
  border-color: var(--color-main);
  color: var(--color-bg);
}
.archive__details--table td a.archive__btn:hover::before,
.archive__details--table td a.archive__btn:focus-visible::before,
.archive__details--table td:nth-last-child(2) a:hover::before,
.archive__details--table td:nth-last-child(2) a:focus-visible::before,
.archive__details--table td:last-child a:hover::before,
.archive__details--table td:last-child a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}
.archive__details--table td a.archive__btn:focus-visible,
.archive__details--table td:nth-last-child(2) a:focus-visible,
.archive__details--table td:last-child a:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.archive__details--selling td:last-child:not(:has(a)) {
	font-weight: 600;
	color: var(--color-red);
}

/* ************************************************************************************************
  single-breeding.php&single-selling.php / 育成馬情報 詳細・売り馬情報 詳細
************************************************************************************************ */
/* 育成馬情報 */
.single__details {
  margin: 15rem 0;
}
.single__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--color-main);
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}
.single__ttl {
  font-size: 3rem;
  font-family: "Noto Sans JP", sans-serif;
}
.single__btn {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-main);
  background: transparent;
  color: var(--color-main);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s cubic-bezier(.22, 1, .36, 1),
              border-color .5s ease;
}
.single__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  color: var(--color-bg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.single__btn:hover,
.single__btn:focus-visible {
  color: var(--color-bg);
}
.single__btn:hover::before,
.single__btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}
.single__btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}
.single__cat li a {
  background-color: var(--color-red);
  border: 1px solid var(--color-red);
  color: var(--color-bg);
  font-weight: 600;
  padding: 0 2rem;
  display: inline-block;
}
.single__diary {
  margin-top: 80px;
  line-height: 1.9;
}
.single__diary img {
  max-width: 100%;
  height: auto;
}
.single__diary p {
  margin-bottom: 1.5em;
}
.single__diary .wp-block-embed__wrapper,
.single__diary .is-type-video .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}
.single__diary iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}
.single__breeding-btn {
  padding-top: 5rem;
  text-align: center;
}

/* 売り馬情報 */
.single__sale {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  margin-bottom: 10rem;
  padding: 1.5rem 0;
  background: rgba(var(--color-text-rgb), .1);
}
.single__sale-item {
  flex: 1 1 240px;
  padding: 0 2rem;
}
.single__sale-item + .single__sale-item {
  border-left: 1px solid var(--color-text);
}
.single__sale dt {
  margin: 0 0 0.4rem;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.single__sale dd {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
}
.single__sale-item:last-child dd {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-main);
  word-break: break-all;
}
.single__info {
  width: 100%;
  max-width: 800px;
  margin: 32px auto 0;
  border-collapse: collapse;
}
.single__info th,
.single__info td {
  padding: 12px 16px;
  border-bottom: 1px solid #dcd6c4;
  text-align: left;
}
.single__info th {
  width: 30%;
  font-weight: bold;
  white-space: nowrap;
}
.single__sale-btn {
  padding-top: 5rem;
  text-align: center;
}

/* 画僧スライダー */
.single__img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.single__img .slider,
.single__img .thumbnail {
  width: 100%;
  min-width: 0;
}
.single__img .slider {
  margin-bottom: 12px;
}
.single__img .slick-img {
  line-height: 0;
}
.single__img .slick-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.single__img .thumbnail .slick-slide {
  padding: 0 4px;
  box-sizing: border-box;
}
.single__img .thumbnail .thumbnail-img {
  line-height: 0;
  cursor: pointer;
}
.single__img .thumbnail .thumbnail-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.single__img .thumbnail .slick-current img {
  opacity: 1;
}
.single__img .slider:not(.slick-initialized) .slick-img:not(:first-child),
.single__img .thumbnail:not(.slick-initialized) .thumbnail-img:not(:first-child) {
  display: none;
}
.slick-dots li button {
  width: 40px !important;
  height: 40px !important;
}
.slick-dots li button:before {
  font-size: 40px !important;
  line-height: 40px !important;
  width: 40px !important;
  height: 40px !important;
  color: var(--color-sub) !important;
}


/* ************************************************************************************************
  archive-race.php / レース実績 一覧
************************************************************************************************ */
.header-sub__race {
  background: url(img/page/header_race-img.jpg) no-repeat 50% 0% / cover;
}
.archive-race__list {
  width: 100%;
  overflow-x: auto;
}
.archive-race__list--table {
  width: 100%;
  min-width: 725px;
  border-collapse: collapse;
  font-size: 1.4rem;
  background: var(--color-bg);
}
.archive-race__list--table th,
.archive-race__list--table td {
  padding: 2px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1.3rem;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.archive-race__list--table td:nth-child(2),
.archive-race__list--table td:nth-child(3) {
  text-align: left;
}
.archive-race__list--table tr:first-child th {
  background-color: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
}
.archive-race__list--table tr:nth-child(even) {
  background-color: var(--color-gray);
}
.archive-race__list--table td a {
  position: relative;
  display: block;
  padding: 0 6px;
  border: 1px solid var(--color-main);
  background: transparent;
  color: var(--color-main);
  text-decoration: none;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  isolation: isolate;
  transition: color .5s cubic-bezier(.22, 1, .36, 1),
              border-color .5s ease;
}
.archive-race__list--table td a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.archive-race__list--table td a:hover,
.archive-race__list--table td a:focus-visible {
  border-color: var(--color-main);
  color: var(--color-bg);
}
.archive-race__list--table td a:hover::before,
.archive-race__list--table td a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}
.archive-race__list--table td a:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}
.archive-race__list--table td:nth-child(5) {
  font-weight: bold;
  color: var(--color-red);
  text-align: center;
}


/* ************************************************************************************************
  index.php / 新着情報 一覧
************************************************************************************************ */
.header-sub__update {
  background: url(img/page/header_update-img.jpg) no-repeat 50% 50% / cover;
}
#update-archive {
  padding: 15rem 0;
}
.update-archive__container {
  justify-content: center;
}
.update-archive__box {
  display: block;
  border-bottom: 1px solid rgba(var(--color-text-rgb), .25);
}
.update-archive__box:first-child {
  border-top: 1px solid rgba(var(--color-text-rgb), .25);
}
.update-archive__box:last-child {
  margin-bottom: 10rem;
}
.update-archive__link {
  position: relative;
  display: block;
  width: 100%;
  padding: 2rem 4rem 2rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: background .3s;
}
.update-archive__link:hover {
  background: rgba(var(--color-text-rgb), .05);
}
.update-archive__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid var(--color-text);
  border-right: 2px solid var(--color-text);
  transform: translateY(-50%) rotate(45deg);
  transition: right .3s;
}
.update-archive__link:hover::after {
  right: 2rem;
}
.update-archive__date {
  margin: 0 4rem 0 0;
  color: rgba(var(--color-text-rgb), .5);
  white-space: nowrap;
}
.update-archive__ttl {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.8;
}


/* ************************************************************************************************
  single.php / 新着情報 詳細
************************************************************************************************ */
#update-single {
  padding: 15rem 0;
}
.update-single__box {
  max-width: 100%;
  margin: 0 auto;
}
.update-single__head {
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(var(--color-text-rgb), .25);
}
.update-single__date {
  margin: 0 0 .5rem;
  color: rgba(var(--color-text-rgb), .5);
}
.update-single__ttl {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.6;
}
.update-single__category {
  margin: 1rem 0 0;
  font-size: 1.3rem;
}
.update-single__category a {
  display: inline-block;
  padding: .2rem .9rem;
  border: 1px solid var(--color-main);
  border-radius: 999px;
  color: var(--color-main);
  text-decoration: none;
}
.update-single__thumb {
  margin-bottom: 3rem;
}
.update-single__thumb img {
  width: 100%;
  height: 425px;
  object-fit: cover;
}
.update-single__txt {
  line-height: 2;
}
.update-single__txt img {
  max-width: 100%;
  height: auto;
}
.update-single__txt p {
  font-size: 1.6rem;
  margin-bottom: 1.5em;
}
.update-single__btn {
  margin-top: 6rem;
  text-align: center;
}


/* ************************************************************************************************
  page-recruit.php / 採用情報ページ
************************************************************************************************ */
.header-sub__recruit {
  background: url(img/page/header_recruit-img.jpg) no-repeat 50% 25% / cover;
}
#recruit {
  margin: 20rem 0;
}

/* 採用メッセージ */
.recruit__message {
  margin-bottom: 20rem;
}
.recruit__message__txt p {
  margin-bottom: 4rem;
}
.recruit__message__img img {
  width: 100%;
  height: 425px;
  object-fit: cover;
}

/* 募集要項 */
.recruit__desc__box {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}
.recruit__desc__img {
  flex: 0 0 calc(60% / 2);
}
.recruit__desc__img img {
  width: 100%;
  height: 325px;
  object-fit: cover;
}
.recruit__desc__table {
  flex: 0 0 calc(140% / 2);
}
.recruit__desc__table table {
  width: 90%;
  height: auto;
}
.recruit__desc__table td a {
  color: var(--color-main);
  font-weight: 600;
  text-decoration: underline;
}


/* ************************************************************************************************
  page-facilities.php / 施設紹介ページ
************************************************************************************************ */
.header-sub__facilities {
  background: url(img/page/header_facilities-img.jpg) no-repeat 50% 50% / cover;
}
#facilities {
  margin: 20rem 0;
}

/* セイクリットファームの施設・設備について */
.facilities__about {
  margin-bottom: 15rem;
}
.facilities__about__txt p {
  font-size: 2rem;
}

/* 施設・設備概要 */
#item1, #item2 {
  scroll-margin-top: 150px;
}
.facilities__desc__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-50);
  align-items: start;
  margin-bottom: 10rem;
}
.facilities__desc__box h4 {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 14px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--color-main);
}
.facilities__desc__box h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-main) 0 72px,
    var(--color-sub) 72px 108px,
    var(--color-gray) 108px 100%
  );
}
.facilities__desc__box > p {
  margin-bottom: 1.5rem;
}
.facilities__desc__box > p span {
  display: inline-block;
  margin: 0 2rem 24px 0;
  padding: 4px 18px;
  background: rgba(var(--color-sub-rgb), .12);
  font-weight: 600;
  color: var(--color-text);
}
.facilities__desc__box table,
.facilities__desc__box tbody {
  display: block;
  width: 100%;
  border: 0;
}
.facilities__desc__box tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(425px, 100%), 1fr));
  gap: 12px;
}
.facilities__desc__box tr {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
  border-top: 3px solid var(--color-main);
  border-radius: 10px;
  background: rgba(var(--color-bg-rgb), 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facilities__desc__box tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--color-text-rgb), .12);
}
.facilities__desc__box th,
.facilities__desc__box td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.facilities__desc__box th {
  font-size: var(--font-size-14);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-sub);
  font-size: 1.4rem;
}
.facilities__desc__box td {
  font-size: var(--font-size-20);
  font-weight: 700;
  line-height: 1.5;
}
.facilities__desc__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.facilities__desc__gallery > div {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  background: rgba(var(--color-main-rgb), 0.06);
  box-shadow: 0 6px 20px rgba(var(--color-text-rgb), .16);
}
.facilities__desc__gallery img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.facilities__desc__gallery > div:hover img {
  transform: scale(1.06);
}
.facilities__desc__gallery p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.75rem 18px 14px;
  background: linear-gradient(
    to top,
    rgba(var(--color-sub-rgb), 0.82) 0%,
    rgba(var(--color-sub-rgb), 0.45) 55%,
    rgba(var(--color-sub-rgb), 0) 100%
  );
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--color-bg);
}
.facilities__desc__gallery > div:first-child:nth-last-child(n + 4) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.facilities__desc__gallery > div:first-child:nth-last-child(n + 4) p {
  padding: 4rem 24px 20px;
  font-size: 2rem;
}


/* ************************************************************************************************
  page-owner.php / 馬主についてページ
************************************************************************************************ */
.header-sub__owner {
  background: url(img/page/header_owner-img.jpg) no-repeat 50% 50% / cover;
}
#owner {
  margin: 20rem 0;
}

/* メッセージ */
.owner__message_txt {
  margin-bottom: 15rem;
}
.owner__message_txt p {
  font-size: 2rem;
  text-align: center;
}

/* 馬主とは */
.owner__about .sub__ttl {
  margin-bottom: 8rem;
}
.owner__about__list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: owner-about;
}
.owner__about__list li {
  position: relative;
  counter-increment: owner-about;
  padding: 64px 36px 36px;
  background: var(--color-bg);
  border-top: 4px solid var(--color-main);
  border-radius: 12px;
  transition:
    transform .3s cubic-bezier(.22, .61, .36, 1),
    box-shadow .3s cubic-bezier(.22, .61, .36, 1);
}
.owner__about__list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--color-text-rgb), .12);
}
.owner__about__list li:nth-child(2) {
  border-top-color: var(--color-sub);
}
.owner__about__list li::before {
  content: counter(owner-about, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 36px;
  font-size: var(--font-size-36);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(var(--color-main-rgb), 0.2);
}
.owner__about__list li:nth-child(2)::before {
  color: rgba(var(--color-sub-rgb), 0.3);
}
.owner__about__list h4 {
  margin: 0 0 24px;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-main);
}
.owner__about__list li:nth-child(2) h4 {
  color: var(--color-sub);
}
.owner__about__list li p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: justify;
}
.owner__about__list li > div {
  margin-bottom: 4rem;
}
.owner__about__box {
  background-color: var(--color-light-gray);
  margin: 8rem 0;
  padding: 5rem 10rem;
}
.owner__about__box > p {
  flex: 0 0 100%;
  margin: 0 0 4rem;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}
.owner__about__btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.owner__about__btn a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 44px 12px 20px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.owner__about__btn a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.owner__about__btn a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .25s;
}
.owner__about__btn a:hover,
.owner__about__btn a:focus-visible {
  color: var(--color-bg);
}
.owner__about__btn a:hover::before,
.owner__about__btn a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.owner__about__btn a:hover::after,
.owner__about__btn a:focus-visible::after {
  right: 18px;
}
.owner__about__movie {
  position: relative;
  max-width: 80%;
  margin: 10rem auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: var(--color-text);
  box-shadow: 0 10px 30px rgba(var(--color-text-rgb), 0.2);
}
.owner__about__movie iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}


/* ************************************************************************************************
  page-company.php / 会社案内ページ
************************************************************************************************ */
.header-sub__company {
  background: url(img/page/header_company-img.jpg) no-repeat 50% 50% / cover;
}
#company {
  margin: 20rem 0;
}
#link {
  scroll-margin-top: 150px;
}

.company__message,
.company__list,
.company__branch,
.company__map {
  margin-bottom: 20rem;
}

/* 挨拶 */
.company__message__txt {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.company__message__txt div,
.company__message__txt p {
  flex: 0 0 calc(90% / 2);
}
.company__message__txt p {
  font-size: 1.6rem;
}

/* 会社概要 */
.company__list__item {
  display: flex;
  justify-content: space-between;

}
.company__list__table {
  flex: 0 0 calc(120% / 2);
}
.company__list__table table {
  width: 90%;
}
.company__list__img {
  flex: 0 0 calc(80% / 2);
}
.company__list__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 施設概要 */
.company__branch__item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 8rem;
}
.company__branch__map {
  flex: 0 0 calc(100% / 2 - 1rem);
}
.company__branch__table {
  flex: 0 0 calc(90% / 2 - 1rem);
}
.company__branch__table > p {
  display: inline-block;
  margin: 0 2rem 16px 0;
  padding: 2px 16px;
  background: rgba(var(--color-sub-rgb), 0.12);
  font-weight: 600;
  color: var(--color-text);
}
.company__branch__table table {
  width: 100%;
  margin-left: auto;
}
.company__branch__table td a {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--color-main);
  background: transparent;
  color: var(--color-main);
  text-decoration: none;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
  isolation: isolate;
  transition: color .5s cubic-bezier(.22, 1, .36, 1), border-color .5s ease;
}
.company__branch__table td a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.company__branch__table td a:hover,
.company__branch__table td a:focus-visible {
  color: var(--color-bg);
}
.company__branch__table td a:hover::before,
.company__branch__table td a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* リンク集 */
.company__link__list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.company__link__list li a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 44px 12px 20px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.company__link__list li a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.company__link__list li a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .25s;
}
.company__link__list li a:hover,
.company__link__list li a:focus-visible {
  color: var(--color-bg);
}
.company__link__list li a:hover::before,
.company__link__list li a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.company__link__list li a:hover::after,
.company__link__list li a:focus-visible::after {
  right: 18px;
}


/* ************************************************************************************************
  page-contact.php / お問い合わせページ
************************************************************************************************ */
.header-sub__contact {
  background: url(img/page/header_contact-img.jpg) no-repeat 50% 50% / cover;
}
#contact {
  padding: 20rem 0 ;
}

/* お問い合わせフォーム */
form {
  border-top: 4px solid var(--color-main);
  border-bottom: 4px solid var(--color-main);
  border-radius: 12px;
  padding: 8rem;
}
input,textarea {
  background-color: var(--color-light-gray);
  color: var(--color-text);
  padding: 1rem 1.6rem;
  width: 100%;
}
input[name="your-radio"],
input[name="your-acceptance"] {
  padding: 0;
  margin: 0;
  width: auto !important;
}
span.required {
  display: inline-block;
  background-color: var(--color-bg);
  border: 1px solid var(--color-red);
  color: var(--color-red);
  font-size: 1.2rem;
  padding: 0 1rem;
  margin-left: 1rem;
  vertical-align: middle;
  line-height: 1.8;
}
input[type="submit"] {
  background-color: var(--color-main);
  color: var(--color-bg);
  width: 100%;
  max-width: 220px;
  height: 60px;
  text-align: center;
  margin: 0 auto;
}
.acceptance,
.recaptcha,
.submit {
  text-align: center;
}
.wpcf7 label {
  display: block;
  font-size: 2rem;
  margin-bottom: 3rem;
}
.wpcf7-spinner {
  display: none !important;
}
.wpcf7-not-valid-tip {
  color: #d93025;
  font-size: 1.6rem !important;
  margin-top: 4px;
  padding-left: 8px;
  order: -1;
  margin-bottom: 4px;
  animation: tipFade 0.25s ease;
}
.wpcf7-not-valid-tip::before {
  content: "!";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  vertical-align: 1px;
}
@keyframes tipFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
}
.wpcf7 form .wpcf7-response-output {
  margin: 4em 0.5em 1em !important;
  font-size: 1.6rem !important;
}
.form-group p {
  font-size: 2rem;
}

/* プライバシーポリシー */
.privacy-policy {
  background-color: var(--color-light-gray);
  overflow-x: auto;
  width: 100%;
  height: 325px;
  padding: 3rem;
  margin-bottom: 5rem;
}
.privacy-policy > h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.4rem;
  margin-bottom: 3rem;
}
.privacy-policy div {
  margin-bottom: 2rem;
}
.privacy-policy div h4 {
  font-size: 1.8rem;
}
.privacy-policy div p {
  font-size: 1.6rem;
}


/* ************************************************************************************************
  404.php / お探しのページは見つかりませんでした
************************************************************************************************ */
.header-sub__nf404 {
  background: url(img/page/header_nf404.jpg) no-repeat 50% 50% / cover;
}

#nf404 {
  margin: 20rem 0;
}
.nf404__contents {
  text-align: center;
}
.nf404__contents h3 {
  font-size: 3rem;
}
.nf404__contents p {
  font-size: 2.4rem;
}
.nf404__contents a {
  color: var(--color-main);
  font-size: 2.8rem;
  text-decoration: underline;
}


/* ************************************************************************************************
  1025px
************************************************************************************************ */
@media screen and (max-width: 1025px){
  /* front-page.php / トップページ */
  .hero__ttl {margin-bottom: 15%; margin-left: 15%;}
  .hero__ttl .en {font-size: 8rem;}
  .hero__ttl .jp, .hero__ttl .txt {font-size: 1.8rem}

  #index-menu .menu-row {grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);}
  #index-menu .menu-row__img {grid-column: 1 / -1; aspect-ratio: 0;}
  #index-menu .menu-row__img img {display: block; width: 100%; height: auto;}
  
  .index-company__box {flex-direction: column;}

  #index-recruit {padding: 15rem 0;}
}

/* ************************************************************************************************
  960px
************************************************************************************************ */
@media screen and (max-width: 960px){
  /* front-page.php / トップページ */
  #index-about {padding: 20rem 0 10rem;}

  #index-menu {margin-bottom: 10rem;}

  #index-owner {margin-bottom: 10rem;}

  #index-company {margin-bottom: 20rem;}

  #index-update {padding-bottom: 10rem;}
  #index-update .wrap {flex-direction: column;}
  .index-update, .index-img {width: 100%;}
  .index-img img {margin-top: 0;}

  /* page-recruit.php / 採用情報ページ */
  #recruit {margin: 10rem 0;}
  .recruit__desc__box {flex-direction: column-reverse;}
  .recruit__desc__table {margin-bottom: 8rem;}
  .recruit__desc__table table {width: 100%;}
  .recruit__desc__img {text-align: right;}
  .recruit__message {margin-bottom: 10rem;}

  /* page-facilities.php / 施設紹介ページ */
  #facilities {margin: 10rem 0;}
  .facilities__about {margin-bottom: 10rem;}
  .facilities__desc__gallery {grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;}
  .facilities__desc__gallery p {padding: 2.25rem 14px 12px; font-size: 1.3rem;}
  .facilities__desc__gallery > div:first-child:nth-last-child(n + 4) p {padding: 3rem 20px 16px; font-size: 1.7rem;}

  /* page-owner.php / 馬主についてページ */
  #owner {margin: 10rem 0;}
  .owner__message_txt {margin-bottom: 10rem;}
  .owner__message_txt p {font-size: 1.8rem;}
  .owner__about__movie {max-width: 90%;}
  .owner__about__list ul {grid-template-columns: 1fr;}

  /* page-company.php / 会社案内ページ */
  #company {margin: 10rem 0;}
  .company__message__txt div, .company__message__txt p {flex: 0 0 calc(95% / 2);}
  .company__message, .company__list, .company__branch, .company__map {margin-bottom: 10rem;}
  .company__list__item,.company__branch__item {flex-direction: column; gap: 4rem;}
  .company__list__table table {width: 100%;}
  .company__link__list ul {grid-template-columns: repeat(2, 1fr); gap: 10px;}

  /* page-contact.php / お問い合わせページ */
  #contact {padding: 10rem 0;}
  form {padding: 6rem 4rem;}
}

/* ************************************************************************************************
  780px
************************************************************************************************ */
@media screen and (max-width: 780px){
  /* front-page.php / トップページ */
  .hero__box {width: 90%;}
  .hero__ttl .en {font-size: 6rem;}
  .hero__ttl .jp, .hero__ttl .txt {font-size: 1.6rem;}

  /* page-facilities.php / 施設紹介ページ */
  .facilities__desc__gallery {grid-template-columns: repeat(2, 1fr); gap: 12px;}
  .facilities__desc__gallery > div {border-radius: 4px; box-shadow: 0 4px 12px rgba(var(--color-text-rgb), 0.14);}
  .facilities__desc__gallery p {padding: 2rem 10px 8px; font-size: 1.2rem; line-height: 1.4; letter-spacing: 0.02em;}
  .facilities__desc__gallery > div:first-child:nth-last-child(n + 4) {grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9;}
  .facilities__desc__gallery > div:first-child:nth-last-child(n + 4) p {padding: 3rem 16px 12px; font-size: 1.5rem;}

  /* page-company.php / 会社案内ページ */
  .company__message__txt {flex-direction: column-reverse; gap: 4rem;}
}

/* ************************************************************************************************
  560px
************************************************************************************************ */
@media screen and (max-width: 560px){
  /* front-page.php / トップページ */
  .hero__ttl {margin-bottom: 10%; margin-left: 10%;}
  .hero__ttl .en {font-size: 4rem;}
  .hero__ttl .jp, .hero__ttl .txt {font-size: 1.1rem;}

  #index-about {padding: 15rem 0 8rem;}
  .index-about__txt {font-size: 1.6rem; margin-top: 8rem;}

  #index-menu .menu-row {grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 4vw, 52px) 20px;}

  #index-owner {margin-bottom: 8rem;}
  .index-owner__txt {padding: 3rem; border: 6px solid var(--color-sub);}
  .index-owner__txt p {margin: 1.5rem 0 3rem;}

  #index-company {margin-bottom: 15rem;}
  .index-company__item {padding: 3rem; border: 6px solid rgba(var(--color-main-rgb), 1);}
  .index-company__item p {margin: 1.5rem 0 3rem;}

  .index-update__tbl th {margin-right: 1.5rem;}

  #index-recruit {padding: 10rem 0;}

  /* archive.php, single-breedign.php, single-selling.php / 育成馬情報&売り馬情報ページ */
  .archive__content {margin: 10rem 0;}
  .archive__taxonomy--list li a {padding: .5rem 1rem;}
  .archive__details--table tr:first-child th,.archive__details--table td:nth-child(2),.archive__details--table td,.archive__details--table td:nth-child(2) a {font-size: 1.3rem;}
  .archive__details--table td {padding: 6px;}
  .archive__details--table td a.archive__btn, .archive__details--table td:nth-last-child(2) a, .archive__details--table td:last-child a {padding: 4px 8px;}

  .single__details {margin: 10rem 0;}
  .single__ttl {font-size: 2rem;}
  .single__btn {padding: 4px 10px;}

  .single__head { grid-template-columns: 1fr 1fr; gap: 1rem;}
  .single__head > :first-child {grid-column: 1 / -1;}
  .single__sale {margin-bottom: 5rem;}
  .single__sale-item {flex: 1 1 100%;}
  .single__sale-item + .single__sale-item {border: none;}
  .single__sale dt {font-size: 1.8rem;}
  .single__sale dd {font-size: 1.5rem;}
  .single__sale-item:last-child dd {font-size: 1.6rem;}

  /* archive-race.php / レース実績一覧ページ */
  .archive-race__list--table th, .archive-race__list--table td {font-size: 1rem;}

  /* index.php, single.php / 新着情報一覧ページ */
  #update-archive, #update-single {padding: 10rem 0;}
  .update-archive__item {display: block;}
  .update-archive__ttl, .update-single__ttl {font-size: 1.6rem;}
  .update-single__txt p {font-size: 1.4rem;}

  /* page-recruit.php / 採用情報ページ */
  .recruit__message__txt p {margin-bottom: 2rem;}
  .recruit__message__img img {height: 295px;}
  .recruit__desc__table {margin-bottom: 5rem;}
  .recruit__desc__table th, .recruit__desc__table td {display: block; width: auto;}
  .recruit__desc__table tr:first-child th {border-top: 1px solid rgba(0, 0, 0, .4);}

  /* page-facilities.php / 施設紹介ページ */
  .facilities__about__txt p{font-size: 1.6rem;}
  .facilities__desc__box h4 {font-size: 2.2rem;}
  .facilities__desc__box > p span {margin: 0 2rem 12px 0; padding: 2px 12px;}

  /* page-owner.php / 馬主についてページ */
  .owner__message_txt p {font-size: 1.6rem;}
  .owner__about__movie {max-width: 100%; margin: 6rem auto;}
  .owner__about__list li {padding: 52px 30px 30px;}
  .owner__about__list h4 {font-size: 2rem; margin: 0 0 16px;}
  .owner__about__list li p {font-size: 1.4rem;}
  .owner__about__box {margin: 4rem 0 0; padding: 3rem 5rem;}
  .owner__about__box > p {font-size: 1.5rem;}
  .owner__about__btn {grid-template-columns: 1fr;}
  .owner__about__btn a {min-height: 55px;}

  /* page-company.php / 会社案内ページ */
  .company__list__img img {height: 395px;}
  .company__branch__map iframe {height: 295px;}
  .company__link__list li a {min-height: 55px;}
  .company__list__table th, .company__list__table td, .company__branch__table th, .company__branch__table td {display: block; width: auto;}
  .company__branch__table > p {margin: 0 0 10px 0;}
  .company__list__item, .company__branch__item {gap: 3rem;}

  /* page-contact.php / お問い合わせページ */
  form {padding: 4rem 1rem;}
  .wpcf7 label {font-size: 1.6rem; margin-bottom: 2rem;}
  .privacy-policy {height: 275px; padding: 2rem;}
  .privacy-policy > h3 {font-size: 1.8rem; margin-bottom: 2rem;}
  .privacy-policy div h4 {font-size: 1.6rem;}
  .privacy-policy div p {font-size: 1.4rem;}

}

/* ************************************************************************************************
  375px
************************************************************************************************ */
@media screen and (max-width: 375px){
  /* page-facilities.php / 施設紹介ページ */
  .facilities__desc__gallery > div:first-child:nth-last-child(n + 4) {aspect-ratio: 3 / 2;}
  @media (hover: none) {.facilities__desc__gallery > div:hover img {transform: none;}}

  /* page-company.php / 会社案内ページ */
  .company__link__list ul {grid-template-columns: 1fr;}
}