/* ========================================
   コラムセクション
======================================== */

.ootachi-column {
  --ootachi-column-left: clamp(24px, 11vw, 205px);
  --ootachi-column-card-width: clamp(280px, 24vw, 445px);
  --ootachi-column-gap: clamp(20px, 2.2vw, 42px);

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0px 0 0px;
  overflow: hidden;
}

.ootachi-column,
.ootachi-column * {
  box-sizing: border-box;
}


/* ========================================
   FAMOUS側のCSSを解除
======================================== */

.p-entry__body .ootachi-column p,
.p-entry__body .ootachi-column h2,
.p-entry__body .ootachi-column h3,
.ootachi-column p,
.ootachi-column h2,
.ootachi-column h3 {
  clear: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}

.ootachi-column article {
  clear: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
}

.ootachi-column a {
  color: inherit;
  text-decoration: none !important;
}

.ootachi-column img {
  margin: 0;
  padding: 0;
  border: 0;
}

.ootachi-column button {
  margin: 0;
  font: inherit;
}

.ootachi-column__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ========================================
   見出し
======================================== */

.ootachi-column__heading {
  margin-bottom: 30px;
  text-align: center;
}

.ootachi-column__heading-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.ootachi-column__heading-en span {
  display: block;
  width: 38px;
  height: 1px;
  background: #c28b38;
}

.ootachi-column__heading-en p {
  color: #b57723;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.23em;
}

.ootachi-column__title {
  color: #183b6b;
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;
  font-size: 26px !important;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
}


/* ========================================
   タイトル下カテゴリー
======================================== */

.ootachi-column__category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.ootachi-column__category-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid #cdd8e3;
  border-radius: 30px;
  background: #ffffff;
  color: #183b6b !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.ootachi-column__category-button:hover {
  border-color: #183b6b;
  background: #183b6b;
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* ========================================
   右端まで広げるスライダーレール
======================================== */

.ootachi-column__rail {
  width: 100%;
  padding-left: var(--ootachi-column-left);
}

.ootachi-column__slider {
  position: relative;
  width: 100%;
}

.ootachi-column__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  outline: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.ootachi-column__viewport::-webkit-scrollbar {
  display: none;
}

.ootachi-column__viewport:focus-visible {
  outline: 3px solid rgba(194, 139, 56, 0.3);
  outline-offset: 5px;
}

.ootachi-column__slider.is-dragging .ootachi-column__viewport {
  cursor: grabbing;
  scroll-behavior: auto;
}

.ootachi-column__slider.is-dragging,
.ootachi-column__slider.is-dragging * {
  user-select: none;
}

.ootachi-column__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: var(--ootachi-column-gap);
  width: max-content !important;
  min-width: 100%;
  padding-right: var(--ootachi-column-left);
}


/* ========================================
   記事カード
======================================== */

.ootachi-column__track > .ootachi-column__card {
  display: flex;
  flex: 0 0 var(--ootachi-column-card-width) !important;
  width: var(--ootachi-column-card-width) !important;
  min-width: var(--ootachi-column-card-width);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.ootachi-column__card-link {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  background: transparent;
}

.ootachi-column__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #e8edf2;
}

.ootachi-column__thumbnail {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.38s ease;
}

.ootachi-column__card-link:hover .ootachi-column__thumbnail {
  transform: scale(1.04);
}

.ootachi-column__no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      #edf2f6 0%,
      #e0e8ef 100%
    );
}

.ootachi-column__no-image span {
  color: #9aabba;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.ootachi-column__content {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 14px 1px 0;
}

.ootachi-column__date {
  display: block;
  margin-bottom: 6px;
  color: #8a949f;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.ootachi-column__card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #183b6b;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Yu Gothic",
    YuGothic,
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.ootachi-column__card-link:hover .ootachi-column__card-title {
  color: #a4443c;
}

.ootachi-column__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.ootachi-column__category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #d9e1e9;
  border-radius: 20px;
  background: #ffffff;
  color: #5a6673;
  font-size: 10px;
  line-height: 1.3;
}


/* ========================================
   大きな左右矢印
======================================== */

.ootachi-column__nav {
  position: absolute;
  top: clamp(79px, 6.75vw, 125px);
  z-index: 20;
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d3dde7;
  border-radius: 50%;
  background: #ffffff;
  color: #183b6b;
  box-shadow: 0 8px 24px rgba(24, 59, 107, 0.18);
  cursor: pointer;
  appearance: none;
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.ootachi-column__nav:hover {
  border-color: #183b6b;
  background: #183b6b;
  color: #ffffff;
}

.ootachi-column__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.ootachi-column__nav:focus-visible {
  outline: 3px solid rgba(194, 139, 56, 0.35);
  outline-offset: 3px;
}

.ootachi-column__nav--prev {
  left: 18px;
}

.ootachi-column__nav--next {
  right: clamp(18px, 4.5vw, 84px);
}

.ootachi-column__nav > span {
  display: block;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.ootachi-column__nav--prev > span {
  margin-left: 6px;
  transform: rotate(-135deg);
}

.ootachi-column__nav--next > span {
  margin-right: 6px;
  transform: rotate(45deg);
}

.ootachi-column__slider.is-static .ootachi-column__nav,
.ootachi-column__slider.is-static .ootachi-column__dots {
  display: none;
}


/* ========================================
   ドット
======================================== */

.ootachi-column__dots {
  display: flex;
  min-height: 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.ootachi-column__dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d2dc;
  cursor: pointer;
  appearance: none;
  transition:
    width 0.2s ease,
    border-radius 0.2s ease,
    background-color 0.2s ease;
}

.ootachi-column__dot.is-active {
  width: 22px;
  border-radius: 20px;
  background: #b57723;
}


/* ========================================
   一覧リンク
======================================== */

.ootachi-column__more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
}

.ootachi-column__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #183b6b !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ootachi-column__more i {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 1px solid #b57723;
  border-radius: 50%;
}

.ootachi-column__more i::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #b57723;
  border-right: 1px solid #b57723;
  transform: rotate(45deg);
}

.ootachi-column__more:hover {
  color: #a4443c !important;
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 1024px) {
  .ootachi-column {
    --ootachi-column-left: clamp(24px, 6vw, 64px);
    --ootachi-column-card-width: clamp(250px, 38vw, 360px);
    --ootachi-column-gap: 20px;
  }

  .ootachi-column__nav {
    width: 56px;
    height: 56px;
  }

  .ootachi-column__nav > span {
    width: 11px;
    height: 11px;
  }

  .ootachi-column__nav--next {
    right: 22px;
  }
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767px) {
  .ootachi-column {
    --ootachi-column-left: 16px;
    --ootachi-column-card-width: 82vw;
    --ootachi-column-gap: 14px;

    padding: 36px 0 30px;
  }

  .ootachi-column__inner {
    padding: 0 16px;
  }

  .ootachi-column__heading {
    margin-bottom: 23px;
  }

  .ootachi-column__heading-en {
    gap: 10px;
    margin-bottom: 17px;
  }

  .ootachi-column__heading-en span {
    width: 28px;
  }

  .ootachi-column__heading-en p {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .ootachi-column__title {
    font-size: 26px !important;
  }

  .ootachi-column__category-nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ootachi-column__category-nav::-webkit-scrollbar {
    display: none;
  }

  .ootachi-column__category-button {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 6px 13px;
    font-size: 11px;
  }

  .ootachi-column__content {
    padding-top: 11px;
  }

  .ootachi-column__date {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .ootachi-column__card-title {
    font-size: 15px;
    line-height: 1.5;
  }

  .ootachi-column__categories {
    margin-top: 8px;
  }

  .ootachi-column__category {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .ootachi-column__nav {
    top: 23.0625vw;
    width: 48px;
    height: 48px;
  }

  .ootachi-column__nav--prev {
    left: 8px;
  }

  .ootachi-column__nav--next {
    right: 10px;
  }

  .ootachi-column__nav > span {
    width: 10px;
    height: 10px;
    border-top-width: 2px;
    border-right-width: 2px;
  }

  .ootachi-column__dots {
    margin-top: 17px;
  }

  .ootachi-column__more-wrap {
    justify-content: center;
    margin-top: 17px;
  }

  .ootachi-column__more {
    font-size: 12px;
  }
}


/* ========================================
   動きを抑える設定
======================================== */

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

  .ootachi-column__thumbnail,
  .ootachi-column__category-button,
  .ootachi-column__nav {
    transition: none;
  }
}